<script>
import {h} from 'vue'
import {useRouter, useRoute} from 'vue-router'
export default {
  name: 'RedirectName',
  setup() {
    const route = useRoute()
    const { params, query } = route
    const router = useRouter()
    const { path } = params
    router.replace({ path, query })
    return () => h()
  },
}
</script>
